<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('鉴定报告审核页面')"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <th:block th:include="include :: summernote-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-register-add">
        <div class="form-group" id="myRadio">
            <label class=" control-label ">审核意见：</label>

            <label class="radio-box">
                <!--审核状态 1:未通过 3:待审核 5:通过-->
                <input type="radio" class="form-control " name="auditStatus" checked value="5"><label>审核通过</label>
            </label>
            <label class="radio-box">
                <input type="radio" class="form-control " name="auditStatus" value="1"><label>审核不通过</label>
            </label>
        </div>
        <div class="form-group">
            <label class="control-label ">处理意见：</label>
            <textarea name="remark" class="form-control " rows="2" placeholder="请输入审批意见!"></textarea>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: summernote-js"/>
<script th:inline="javascript">

    $(function () {
        var myUl = $("#myRadio").find("input");

        myUl.each(function (index, e) {
            $(e).on('ifChecked', function () {
                if ($(e).val() == "1") {
                    $("textarea[name='remark']").val("");

                } else if ($(e).val() == "5") {
                    $("textarea[name='remark']").val("");
                }
                $("textarea[name='remark']").attr("placeholder", "请输入审批意见!");
            })
            // console.log(index+' value'+$(e).val())
        })

        // $("#myRadio").find("input").change(function () {
        //     console.log("123");
        // })

    })
</script>


</body>
</html>